package thinkinginjava.polymorphic;


public class PolyStructors {
	class Glyph {
		void draw() {
			System.out.println("Glyph draw");
		}

		Glyph() {
			System.out.println("Before Glyph draw");
			draw();
			System.out.println("After Glyph draw");
		}
	}

	class RoundGlyph extends Glyph {
		private int radius = 1;
		RoundGlyph(int radius) {
			this.radius = radius;
			System.out.println("RoundGlyph RoundGlyph. Radius: " + this.radius);
		}

		void draw() {
			System.out.println("RoundGlyph draw. Radius: " + this.radius);
		}
	}

	public static void main(String[] args) {
		new PolyStructors().new RoundGlyph(5);
	}
}
